package com.alibaba.datax.core.util.geo.response;

public class GeoInfoResponse {

    private String formatted_address;

    /**
     * 状态
     */
    private String status;

    /**
     * 信息码
     */
    private String infocode;

    /**
     * 坐标点所在乡镇
     */
    private String townShip;

    /**
     * 地址所在的省份名
     */
    private String province;

    /**
     * 地址所在的城市名
     */
    private String city;

    /**
     * 区
     */
    private String district;

    /**
     * 社区
     */
    private String community;

    /**
     * 城市代码
     */
    private String cityCode;

    /**
     * 坐标点
     */
    private String location;

    private GeoInfoResponse(Builder builder) {
        setFormatted_address(builder.formatted_address);
        setStatus(builder.status);
        setInfocode(builder.infocode);
        setTownShip(builder.townShip);
        setProvince(builder.province);
        setCity(builder.city);
        setDistrict(builder.district);
        setCommunity(builder.community);
        setCityCode(builder.cityCode);
        setLocation(builder.location);
    }

    public static Builder builder() {
        return new Builder();
    }


    public String getFormatted_address() {
        return formatted_address;
    }

    public void setFormatted_address(String formatted_address) {
        this.formatted_address = formatted_address;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getInfocode() {
        return infocode;
    }

    public void setInfocode(String infocode) {
        this.infocode = infocode;
    }

    public String getTownShip() {
        return townShip;
    }

    public void setTownShip(String townShip) {
        this.townShip = townShip;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getCommunity() {
        return community;
    }

    public void setCommunity(String community) {
        this.community = community;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public static final class Builder {
        private String formatted_address;
        private String status;
        private String infocode;
        private String townShip;
        private String province;
        private String city;
        private String district;
        private String community;
        private String cityCode;
        private String location;

        private Builder() {
        }

        public Builder formatted_address(String val) {
            formatted_address = val;
            return this;
        }

        public Builder status(String val) {
            status = val;
            return this;
        }

        public Builder infocode(String val) {
            infocode = val;
            return this;
        }

        public Builder townShip(String val) {
            townShip = val;
            return this;
        }

        public Builder province(String val) {
            province = val;
            return this;
        }

        public Builder city(String val) {
            city = val;
            return this;
        }

        public Builder district(String val) {
            district = val;
            return this;
        }

        public Builder community(String val) {
            community = val;
            return this;
        }

        public Builder cityCode(String val) {
            cityCode = val;
            return this;
        }

        public Builder location(String val) {
            location = val;
            return this;
        }

        public GeoInfoResponse build() {
            return new GeoInfoResponse(this);
        }
    }
}
